In our example, log files are rotated weekly, rotated log files are kept for four weeks, and all rotated log files are compressed by gzip into the .gz format.
Log rotation ensures log files do not consume excessive disk space, potentially causing a denial of service. Rationale: Log files are important to track ...
weekly. Each file should be rotated weekly. The log rotation job runs nightly, though, so this can be changed to daily for a specific log file if desired.
2023年5月4日 — Overall, this configuration ensures that the specified log files are rotated weekly, compressed, and limited to a maximum of 4 rotated log files ...
2017年8月23日 — weekly: Rotate logs once per week. Available options are daily, weekly, monthly, and yearly; missingok: It's OK if no *.log files are found ...
2022年3月4日 — Adjust your log rotation schedule. Logrotate enables you to rotate on a daily, weekly (default), monthly, or yearly basis—or when a file's size ...
2020年1月16日 — Some of the most important settings are: daily, monthly, weekly, yearly: indicates how often to rotate the log file. compress, nocompress: ...
2017年4月28日 — Log files are rotated the first time logrotate is run in a month (this is normally on the first day of the month). The effect of your config is ...
2024年3月18日 — Particularly, we can rotate log files on a fixed duration or if the ... Alternatively, to rotate it weekly, we simply specify the weekly directive ...